home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000357_simon@lia.di.epfl.ch_Thu Mar 10 09:30:19 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  2KB

  1. Received: from liasun6.epfl.ch by cs.umb.edu with SMTP id AA08473
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Thu, 10 Mar 1994 09:30:19 -0500
  3. Received: by liasun6.epfl.ch (Smail3.1.28.1 #58)
  4.     id m0pelke-0002PbC; Thu, 10 Mar 94 15:30 MET
  5. Message-Id: <m0pelke-0002PbC@liasun6.epfl.ch>
  6. Date: Thu, 10 Mar 94 15:30 MET
  7. From: simon@lia.di.epfl.ch (Simon Leinen)
  8. To: "K. Berry" <kb@cs.umb.edu>
  9. Cc: tex-k@cs.umb.edu
  10. Subject: kpathsea versions
  11. In-Reply-To: <199403101122.AA19043@ra.cs.umb.edu>
  12. References: <199403101122.AA19043@ra.cs.umb.edu>
  13.  
  14. kb> You can't mix and match effortlessly, either -- trying to compile
  15. kb> web2c with the new kpathsea (or the drivers with the old one)
  16. kb> almost certainly won't work without source changes.
  17.  
  18. I tried that, and the only changes I had to make was this:
  19.  
  20. --- kpathsea/fontmap.h    1994/03/10 14:18:55    1.1
  21. +++ kpathsea/fontmap.h    1994/03/09 16:18:45
  22. @@ -23,6 +23,8 @@
  23.  #include <kpathsea/hash.h>
  24.  #include <kpathsea/types.h>
  25.  
  26. +#define MAP_NIL { 0, 0 }
  27. +#define MAP_NILP(map) (!(map).buckets)
  28.  
  29.  /* Parse the file `texfonts.map' in each of the directories in PATH and
  30.     return the resulting structure.  Entries in earlier files override
  31. --- web2c/lib/ourpaths.c    1994/03/09 16:05:56    1.1
  32. +++ web2c/lib/ourpaths.c    1994/03/09 16:19:08
  33. @@ -88,10 +88,10 @@
  34.                   || path_index == PKFILEPATH))
  35.      {
  36.        string *mapped_names;
  37. -      static map_type fontmap = NULL;
  38. +      static hash_table_type fontmap = MAP_NIL;
  39.        
  40.        /* Fault in the mapping if necessary.  */
  41. -      if (!fontmap)
  42. +      if (MAP_NILP (fontmap))
  43.          fontmap = map_create (path);
  44.        
  45.        /* Now look for our filename in the mapping.  */
  46.  
  47. kb> Since no one (that I know of) is doing any work with kpathsea
  48. kb> besides me, I am 100% unconcerned with backward compatibility in
  49. kb> the library interface at this point.
  50.  
  51. Understandable, but as a user of the tex-k package I would prefer to
  52. be able to build the latest versions of everything with the same file
  53. searching behaviour.
  54. -- 
  55. Simon.